package game.objects
{
import flash.display.MovieClip;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.geom.Point;
public class HitTest {
	public function HitTest() {
		
	}
	static public function hit(mc1:MovieClip,mc2:MovieClip):Boolean {
		var bmd1:BitmapData= new BitmapData(mc1.width, mc1.height, true, 0);
		bmd1.draw(mc1);
		var bmd2:BitmapData = new BitmapData(mc2.width, mc2.height, true, 0);
		bmd2.draw(mc2);
		if (bmd1.hitTest(new Point(mc1.x, mc1.y), 0x55, bmd2, new Point(mc2.x, mc2.y))) {
			return true;
		}else{
			return false;
		}
	}
}
}